import ClassificationMutations from './classification/mutations'
import MineMutations from './mine/mutations'

export const types = {
    updateCount: 'updateCount',
    updateSystemInfo: 'updateSystemInfo', //手机型号信息
    hidePart: 'hidePart', //手机型号信息
};

export default {
    [types.updateCount](state, payload) {
        state.count = payload.data;
    },
    ...ClassificationMutations,
    ...MineMutations,
    // 手机系统信息
    [types.updateSystemInfo](state, payload) {
        state.systemInfo = payload;
    },
    [types.hidePart](state, payload) {
        state.hidePart = payload;
    },
}
